<div class="gallery-buttons">
{if $owner == TRUE}<a href="index.php?c=CGallery&a=aggiungiGallery">Inserisci una nuova gallery</a>{/if}
</div>
<div id="galleries">
{if count($galleries) != 0}
{foreach from=$galleries item=gallery}
<div class="gallery" value="{$gallery->getId()}">
{if $owner == TRUE || $v_admin ==  TRUE}
<div class="control" style="float:right;width:80px;">
<a class="modifica" href="#" title="modifica"></a>
<a class="elimina" href="index.php?c=CGallery&a=rimuoviGallery&id={$gallery->getId()|urlencode}" title="elimina"></a>
</div>
{/if}
<div class="info">
<img src="images/folder.png"/>
<p>Nome:<span class="nome">{$gallery->getNome()|escape}</span></p>
<p>Descrizione:<span class="descrizione">{$gallery->getDescrizione()|escape}</span></p>
<div class="gallery-buttons"><a href="index.php?c=CGallery&a=mostraGallery&id={$gallery->getId()}" >Visualizza</a></div>
</div>
</div>
{/foreach}
{else}
<h3>L'utente non ha creato ancora nessuna gallery!</h3>
{/if}
</div>
{if $owner == TRUE || $v_admin == TRUE }
<script type="text/javascript">

var modifica = new modificaGallery('{$v_utente->getUsername()}');


</script>
{/if}